﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using PdfSharp;
using PdfSharp.Drawing;
using PdfSharp.Pdf;
using PdfSharp.Pdf.IO;

namespace MaskData
{
    class PDF
    {        
        // Instantiate a new instance of mdMain so we can access our expression variables.
        mdMain _mdMain = new mdMain();
        
        /*public void OpenPDF(string PDFPath)
        {           
            // Open the PDF.
            PdfDocument inputDoc = PdfReader.Open(PDFPath, PdfDocumentOpenMode.Modify);
            
            // Iterate through the pages
            int count = inputDoc.PageCount;

            for (int idx = 0; idx < count; idx++)
            {
                // Get the pages...
                PdfPage page = inputDoc.Pages[idx];

                // Look for our data and hash it.                

                if (Regex.IsMatch(page, _mdMain.ssnExpressions))
                {                    
                   
                }
            }
       }*/
    }
}
